#!/bin/sh
while true
do
  ps -fe|grep mqtt.py |grep -v grep
  if [ $? -ne 0 ]
    then
      sleep 1
      python /home/pi/getip/mqtt.py
      echo "start process....."
    else
      echo "runing....."
      break;
  fi
done

